package com.muqi.app.network.http;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.muqi.app.qlearn.student.R;
public class GlideImageUtils {
	 /**
     * 设置用户头像
     * @param username
     */
    public static void setAvatar(Context context, String url, ImageView imageView){
    	 Glide.with(context).load(url).dontAnimate().placeholder(R.drawable.default_avator).into(imageView);
    }
    
    public static void setImageLoader(Context context, String url, ImageView imageView, int defaultRes){
   	 	Glide.with(context).load(url).dontAnimate().placeholder(defaultRes).into(imageView);
    }
}
